package yz.cp.back.s.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import yz.cp.back.s.entity.SysRole;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("select * from sys_role where default_role=#{defaultRole}")
    List<SysRole> findByDefaultRole(@Param("defaultRole") Boolean defaultRole);
}
